<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class EmpApp extends EntityMyPK {
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(EmpAppAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(EmpAppAttr::$FK_Emp, $value);
	}
	public function getFK_App () 
	{
		return $this->GetValStringByKey(EmpAppAttr::$FK_App);
	}
	public function setFK_App ($value) // [String value]
	{
		$this->SetValByKey(EmpAppAttr::$FK_App, $value);
	}
	public function getName () 
	{
		return $this->GetValStringByKey(AppAttr::$Name);
	}
	public function setName ($value) // [String value]
	{
		$this->SetValByKey(AppAttr::$Name, $value);
	}
	public function getIdx () 
	{
		return $this->GetValIntByKey(AppAttr::$Idx);
	}
	public function setIdx ($value) // [int value]
	{
		$this->SetValByKey(AppAttr::$Idx, $value);
	}
	public function getImg () 
	{
		$s = $this->GetValStringByKey("WebPath");
		if ($DataType->IsNullOrEmpty($s))
		{
			return "../../DataUser/BP.GPM.STem/laptop.png";
		}
		else
		{
			return $s;
		}
	}
	public function getUrl () 
	{
		return $this->GetValStringByKey(AppAttr::$Url);
	}
	public function setUrl ($value) // [String value]
	{
		$this->SetValByKey(AppAttr::$Url, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("GPM_EmpApp");
		$map->setDepositaryOfEntity($Depositary->None);
		$map->setDepositaryOfMap($Depositary->Application);
		$map->setEnDesc("管理员与系统权限");
		$map->setEnType($EnType->App);
		$map->AddMyPK();
		$map->AddTBString(EmpAppAttr::$FK_Emp, NULL, "操作�?",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddTBString(EmpAppAttr::$FK_App, NULL, "系统",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddTBString(AppAttr::$Name, NULL, "系统-名称",  TRUE ,  FALSE , 0, 3900, 20);
		$map->AddTBString(AppAttr::$Url, NULL, "连接",  TRUE ,  FALSE , 0, 3900, 20,  TRUE );
		$map->AddMyFile("图标");
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
